home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
utils1
/
dfat26.arj
/
DFAT.DOC
next >
Wrap
Text File
|
1994-01-25
|
10KB
|
222 lines
DFAT 2.6
[short for Directory FAT]
Shows file clusters in directory groups
by
Bob Eyer
Compuserve [73230,2620]
INTERNET: 73230.2620@compuserve.com
January 25, 1994
┌────────────────────────────────────────────────────────────────┐
│ │
│ Like the idea of a BBS program that works at a basic │
│ level with no configuration at all--a miniature BBS │
│ which can be made as sophisticated as you like, but │
│ which can be run as a simple utility if you forget how │
│ to use it? Try HOSP. Lots of people like it. And you │
│ can have a copy for only $25 (the basic shareware │
│ charge plus $5). That contribution pays for HOSP as │
│ well as some four dozen plus additional utilities, many │
│ of which cover territory nowhere else reviewed. See │
│ SHARE.TXT for details. For preview, try most recent │
│ version of HOST in Library 1 of Compuserve's IBMBBS │
│ Forum. (Search for EYER or HOST) │
│ │
└────────────────────────────────────────────────────────────────┘
WARNING: This program is not intended to be run in drive
partitions larger than 32 megabytes.
Syntax
------
DFAT [path cluster /V /S /P /Rxy] [>file]
Parameters
----------
path Drive/subdirectory on which to run DFAT.
The default is the local directory. This parameter
requires the use of the colon in the drive name if
DFAT is to recognise a different drive. If you want
the root directory and are not in it, just use the
drive name without any backslash.
If a subdirectory is mentioned as a part of the path,
it must begin with a backslash. DFAT suppresses path
defaults on other drives. Do NOT include filenames
or wildcards in the path (DFAT will interpret them
as directories, and so not find them).
A little experimentation will show how this
parameter is used.
If DFAT is made to operate on a nonexistent or
unready drive, it will simply flip back to the local
drive and present the appropriate disk report. If
the user's subdirectory does not exist, DFAT will
report that fact.
Examples of syntactically valid paths:
D:
d:\sys
\SYS\CIS\
c:\util\a
cluster The first cluster number of the subdirectory to be
viewed. If not entered and if only drive information
appears on the command line, DFAT simply presents the
root directory from which the cluster numbers for
subdirectories can be obtained.
Use of a value for cluster that does not actually
correspond to any actual subdirectory causes DFAT to
abort with an appropriate error message.
This parameter is ignored where the user enters a
path containing valid subdirectory information.
/V Graph switch.
When this switch is used, DFAT displays a map of the
drive selected, instead of the specific numerical
statistics on file and file fragment locations.
Since DFAT also picks up information about the
line-capacity of the video monitor (25, 43, or 50
lines), it automatically adjusts the scale used to
represent clusters in the ASCII graphical space so
as, if possible, to fill just one screen with the
map.
When using resolutions in excess of 50 lines per
screen, use the /Rxy switch below.
The output is, naturally, redirectable so that the
user can transmit a picture of his drive to
someone else.
/P Pagination switch.
/S Short form.
Where activated, this switch suppresses all video
output except the final disk summary. Useful for
including DFAT in AUTOEXEC.BAT.
/Rxy Enables user to override DFAT's internal line-
detecting routine. For example, when using a
60-line screen, this switch should read
/R60
No equals sign.
[>file] If the directory is very long, you might redirect
DFAT output to a file and view the result using your
lister or editor.
Note: parameter order is important. If a path is mentioned, it
must be listed first on the command line. Switches must be
mentioned last.
Switches, however, may be mentioned together in any order. For
example, let us suppose you wish to use a 60-line screen and a
paginated graphics display for drive D. The following command
should then be used -
DFAT D:/VPR60
However, in most cases, internal resolution control should make
pagination unnecessary when using the graphics display.
Discussion
----------
The primary purpose of this program is to measure file
fragmentation on given disks taken as a whole, as well as to
show it in the user's selected directory.
The initial cluster of each file is not a fragment; where a file
is fragmented, its fragments consist of those parts which are
not physically contiguous on the disk's tracks with that file's
initial cluster, or with other fragments of the same file.
Thus, a file which is physically integrated by DOS from two
discontiguous media images is said to have one "fragment".
Where a file has fragments, they are separated by a single space
in DFAT's listing.
DFAT counts all fragments on the disk (as recursively defined
above) and prepares a percentage evaluation shown on the last
line of video output. This percentage is injected to DOS as an
errorlevel for batch file processing.
Generally speaking, it's time to defrag your disk, if DFAT
shows fragmentation percentages exceeding 15-30%, especially on
disks which show relatively little free space. Failure to
respond appropriately to the buildup of file fragmentation is
one of the most common causes of drive failure.
The inspiration for DFAT was Chris Dunford's excellent FAT 1.09
(appearing in IBMSYS's Library 1 as FAT.ARC). However, I needed
a program whose output looked more like a DOS directory. I also
wished to extend the program to provide errorlevel output on the
percentage measure of fragmentation, much as does PC Mag's
interesting program CHKFRAG by Bob Flanders et al.
I thought others would appreciate such revisions, as well.
An important difference between CHKFRAG and DFAT is that the
former defines fragmentation in terms of the number of
fragmented files. DFAT, however, counts what CHKFRAG calls
"extra sections" as fragments, without regard to how they are
distributed among files and subdirectories. For this reason,
DFAT arrives at slightly different results.
Changes in DFAT 2.6 (1/25/94)
----------------------------
- Adds map-view function
Changes in DFAT 2.5
-------------------
- Fixes bug that occasionally hung program on non-filename
directory noise.
- Adds file count statistic at bottom of list.
Changes in DFAT 2.4
-------------------
- Contains part of logic needed to implement handling of drive
partitions larger than 32 megs (double integer arrays to store
large file allocation tables).
- Fixes a limitation of earlier versions which did not allow for
fragmented directory listings and full nesting of
subdirectories. The current version supports nesting of up to
32 subdirectories, and up to 32 fragments per single
subdirectory listing.
Changes in DFAT 2.2
-------------------
- Tests for total space on given logical drive; if in excess
of 32 megabytes, DFAT aborts to DOS with an appropriate error
message.
Changes in DFAT 2.1
-------------------
- Addition of pagination and short-form switches
- Cosmetic changes to effect briefer displays
- If neither path nor cluster number entered,
DFAT defaults directory to local directory
instead of root
- Increases subdirectory capacity
- Fixes bug which caused erroneous fragment counts
on small drives
- Largely fixes bug which caused string-allocation
hangs on some machines
-------------------------
End of documentation